/* Contact Section - Social Icons Style */

.contact-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.contact-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Social Icons Wrapper */
.social-icons-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Social Container */
.social-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--delay);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

/* Social Icon Link */
.social-icon-link {
    height: 90px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

/* Icon Styles */
.icon-ghost,
.icon-colored {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.46, -0.78, 0.5, 1.56);
    margin-top: 25px;
}

.icon-ghost {
    border: 2px solid #ddd;
}

.icon-ghost svg {
    fill: #888;
    transition: fill 0.3s ease;
}

.icon-colored {
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); */
}

.icon-colored svg {
    fill: white;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}

/* Hover Effect */
.social-icon-link:hover .icon-ghost {
    transform: translateY(-85px);
}

.social-icon-link:hover .icon-colored {
    transform: translateY(-85px);
}

.social-icon-link:hover .icon-colored svg {
    opacity: 1;
}

/* Label */
.social-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    transition: color 0.3s ease;
}

.social-container:hover .social-label {
    color: #1a1a2e;
}

/* Clouds Animation */
.contact-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.contact-clouds .cloud {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.7) 100%);
    border-radius: 100px;
    filter: blur(2px);
    opacity: 0.5;
}

.contact-clouds .cloud::before,
.contact-clouds .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.contact-clouds .cloud-1 {
    width: 160px;
    height: 48px;
    top: 10%;
    right: -200px;
    animation: cloudMoveRTL 24s linear infinite;
}
.contact-clouds .cloud-1::before { width: 62px; height: 62px; top: -31px; left: 22px; }
.contact-clouds .cloud-1::after { width: 48px; height: 48px; top: -24px; left: 75px; }

.contact-clouds .cloud-2 {
    width: 140px;
    height: 42px;
    top: 40%;
    right: -180px;
    animation: cloudMoveRTL 28s linear infinite;
    animation-delay: -8s;
}
.contact-clouds .cloud-2::before { width: 55px; height: 55px; top: -28px; left: 18px; }
.contact-clouds .cloud-2::after { width: 42px; height: 42px; top: -21px; left: 65px; }

.contact-clouds .cloud-3 {
    width: 180px;
    height: 55px;
    top: 65%;
    right: -220px;
    animation: cloudMoveRTL 22s linear infinite;
    animation-delay: -14s;
}
.contact-clouds .cloud-3::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.contact-clouds .cloud-3::after { width: 55px; height: 55px; top: -28px; left: 85px; }

.contact-clouds .cloud-4 {
    width: 130px;
    height: 40px;
    top: 85%;
    right: -170px;
    animation: cloudMoveRTL 26s linear infinite;
    animation-delay: -4s;
}
.contact-clouds .cloud-4::before { width: 52px; height: 52px; top: -26px; left: 16px; }
.contact-clouds .cloud-4::after { width: 40px; height: 40px; top: -20px; left: 60px; }

@keyframes cloudMoveRTL {
    0% { right: -250px; }
    100% { right: 100%; }
}

/* Sparkles Animation */
.contact-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.contact-sparkles .sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700 0%, #ffec8b 50%, transparent 70%);
    border-radius: 50%;
    animation: sparkleContact 2.5s ease-in-out infinite;
    box-shadow: 0 0 12px #ffd700, 0 0 24px #ffd700, 0 0 36px #ffec8b;
}

.contact-sparkles .sparkle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.contact-sparkles .sparkle-2 { top: 25%; right: 8%; animation-delay: 0.4s; }
.contact-sparkles .sparkle-3 { top: 45%; left: 3%; animation-delay: 0.8s; }
.contact-sparkles .sparkle-4 { top: 60%; right: 5%; animation-delay: 1.2s; }
.contact-sparkles .sparkle-5 { top: 80%; left: 8%; animation-delay: 1.6s; }
.contact-sparkles .sparkle-6 { top: 90%; right: 10%; animation-delay: 2s; }

@keyframes sparkleContact {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Toast Notification */
.contact-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .social-icons-wrapper {
        gap: 15px;
        -webkit-box-reflect: none;
    }
    
    .icon-ghost,
    .icon-colored {
        width: 50px;
        height: 50px;
    }
    
    .social-icon-link {
        height: 75px;
    }
    
    .icon-ghost,
    .icon-colored {
        margin-top: 20px;
    }
    
    .social-icon-link:hover .icon-ghost,
    .social-icon-link:hover .icon-colored {
        transform: translateY(-70px);
    }
    
    .social-label {
        font-size: 0.75rem;
    }
    
    .contact-clouds .cloud { display: none; }
    .contact-sparkles .sparkle { width: 8px; height: 8px; }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .social-icons-wrapper {
        gap: 12px;
    }
    
    .icon-ghost,
    .icon-colored {
        width: 45px;
        height: 45px;
    }
    
    .icon-ghost svg,
    .icon-colored svg {
        height: 1.3em;
    }
}

/* ===================================
   LTR (Left-to-Right) Styles
   =================================== */

/* LTR Clouds Animation */
html[dir="ltr"] .contact-clouds .cloud-1,
html[dir="ltr"] .contact-clouds .cloud-2,
html[dir="ltr"] .contact-clouds .cloud-3,
html[dir="ltr"] .contact-clouds .cloud-4 {
    right: auto;
    left: -250px;
    animation-name: cloudMoveLTR;
}

@keyframes cloudMoveLTR {
    0% { left: -250px; }
    100% { left: 100%; }
}
